﻿
<!DOCTYPE html>
<html>

<head>
    @include('head')
    <title></title>
</head>




<body>
@include('header')

    <div id="Index_main">
        <div class="Index_main_list">
            <div class="nember6 bgGreen1"><nav class="Step1 F2em">1</nav><nav class="StepTitle white">选运动类别</nav></div>
            <div class="order_main_mod">
                <div class="Steptxt"><div class="bgGreen1 white coner04em paddingLR05em btn">1/3</div> 请在下面选择运动类别 (您只需3步即可轻松预订场地)</div>
                <div class="ChangeRow"></div>
                <?php $i=1; ?>
                @foreach($cats as $cat)
                    
                    <a href="/stadium/{{$cat->cat_id}}" title="{{$cat->cat_name}}" alt="羽毛球">
                        <div class="modpic6em" style="background-image:url(/images/icon_{{$i++}}.png)">  </div>
                    </a>
                
                @endforeach                   
                </div>


            <a name="step2"></a>
            <div class="ChangeRow"></div>
            <div class="nember6 bgGreen1"><nav class="Step1 F2em">2</nav><nav class="StepTitle white">选场馆</nav></div>
            <div class="order_main_mod">
                <div class="Steptxt"><div class="bgGreen1 white coner04em paddingLR05em btn">2/3</div> 选择所在区域</div>
                <div class="ChangeRow"></div>

                    <a href="/stadium/1">
                        <div class="white coner04em padding05em btn bgOringe">全部</div>
                    </a>

                    @foreach($areas as $area)
                        @unless($area->pid == 0)
                        
                        <a href="/stadium/{{$area->cat_id}}">
                            <div class="white coner04em padding05em btn bgGreen2">{{$area->cat_name}}</div>
                        </a>

                        @endunless  
                    @endforeach            

                </div>
            <div class="ChangeRow"></div>



           <a name="step3"></a>
            <div class="nember7"><nav class="Step1 F2em">{{$stadiums->count()}}</nav><nav class="StepTitle white">场馆可选择</nav></div>
            <div id="order_list" class="order_main_mod">


                @foreach($stadiums as $stadium )
                <div class="Venues">
                    <a href='{{ url("stadium_detail/{$stadium->stadium_id}") }}'>
                        <div class="VenuesPic" style="background-image:url({{url($stadium->images[0])}})"></div>
                        <div class="VenuesName Green F1_2em" title="节能网球馆">{{ $stadium->stadiumname }}<span class="fa fa-map-marker Green padding02em FloatRight"></span></div>
                        <div class="Gray" title="顺义区-林吉产业园区">{{$stadium->address}}</div>
                                                <div class="lastSpace coner04em bgGreen2 btn white padding05em">0/294</div>
                        <div class=" white coner04em bgOringe padding05em btn">￥40-150</div>
                    
                    </a>
                </div>


                @endforeach
                               


                                <p style="display: none" id="page_index">0</p>
            </div>
        </div>
    </div>
   








@include('footer')






</body>
</html>
